package com.base.mine;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;

@Route(path = "/mine/main")
public class MainActivity extends AppCompatActivity {
    @Autowired
    public String nickname,height,age,fans,follow,zan;
    private TextView tvname,tvHeight,tvAge,tvFans,tvFollow,tvZan;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mine);
        ARouter.getInstance().inject(this);
        initData();
        initView();
    }

    private void initData() {

    }

    private void initView() {
        tvname = findViewById(R.id.nikename);
        tvHeight = findViewById(R.id.height);
        tvAge = findViewById(R.id.age);
        tvFans = findViewById(R.id.fans);
        tvFollow = findViewById(R.id.follow);
        tvZan = findViewById(R.id.zan);

        tvname.setText("昵称：" + nickname);
        tvHeight.setText("身高："+height);
        tvAge.setText("年龄："+age);
        tvFans.setText("粉丝："+fans);
        tvFollow.setText("关注："+follow);
        tvZan.setText("点赞："+ zan);
    }
}
